package com.czh.service.User;

import com.czh.pojo.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    User userLogin(String userCode, String userPassword);
    boolean UpdatePsd(int id, String userPassword);
    int userCount(String username,int userRole);
    List<User> userList(String username,int userRole,int currentPageNo, int pageSize);
    boolean userAdd(User user) throws SQLException;
    User userCodeSelect(String userCode);
    User userIdSelect(Integer id);
    boolean userDelete_id(Integer id) throws SQLException;
    boolean modify(User user);
}
